package com.user.service;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.TablePage;
import com.user.entity.Department;

public interface IDepartmentService {
	public List<Department> findAll();
	public void saveOrUpdate(Department department);
	public void delete(Long id);
	public TablePage<Department> findTablePage(Specification<Department> spec,Pageable pageable);
	public boolean hasStudent(Long id);
	public boolean hasTeacher(Long id);
	public boolean isNumExist(Department department);
	public List<Department> findList();
}
